package com.quik.entity;

import java.util.Date;

import com.quik.util.Tools;

/**
 * 功能说明：
 *        帐单POJO（对应表biz_billing）
 * @author Jenny
 *
 */
public class BizBilling extends BaseEntity {
	private Integer id;
	private String billing_no;
	private String contact_staff_no;
	private Integer if_master = 0;
	private Integer billed_id;
	private String status = STATUS_ACTIVE;  //默认为未结帐
	private String date_no;

	public BizBilling(){
		try {
			this.date_no = Tools.date2String8(new Date());
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
	
	public String getDate_no() {
		return date_no;
	}
	public void setDate_no(String date_no) {
		this.date_no = date_no;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getBilling_no() {
		return billing_no;
	}
	public void setBilling_no(String billing_no) {
		this.billing_no = billing_no;
	}
	public String getContact_staff_no() {
		return contact_staff_no;
	}
	public void setContact_staff_no(String contact_staff_no) {
		this.contact_staff_no = contact_staff_no;
	}
	public Integer getIf_master() {
		return if_master;
	}
	public void setIf_master(Integer if_master) {
		this.if_master = if_master;
	}
	public Integer getBilled_id() {
		return billed_id;
	}
	public void setBilled_id(Integer billed_id) {
		this.billed_id = billed_id;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	/**帐单状态 - 未结帐**/
	public static String STATUS_ACTIVE = "A";
	
	/**帐单状态 - 已结帐**/
	public static String STATUS_PAID = "P";
	
	/**帐单状态 - 取消**/
	public static String STATUS_CANCELLED = "C";
	
	/**	主帐单 - 是**/
	public static int MASTER_YES = 0;
	
	/** 主帐单 - 否**/
	public static int MASTER_NO = 1;

}
